//
//  AssessTestTableViewCell.m
//  shike
//
//  Created by RegentSoft on 2017/4/21.
//  Copyright © 2017年 RegentSoft. All rights reserved.
//

#import "AssessTestTableViewCell.h"

@implementation AssessTestTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
        [self creatView];
    }
    return self;
}
-(void)creatView{
    _headImage =[[UIImageView alloc] initWithFrame:CGRectMake(10, 10,50, 50)];
    //    image.image = [UIImage imageNamed:@"brgoud3"];
    [self addSubview:_headImage];
    
    _titleLabel =[[UILabel alloc] initWithFrame:CGRectMake(65, 25, 160, 20)];
    _titleLabel.textColor = [UIColor colorWithHexString:@"#323232"];
    _titleLabel.font = [UIFont systemFontOfSize:14.0];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titleLabel];
    
    _contentBtn =[[UIButton alloc] initWithFrame:CGRectMake(DeviceWidth-90, 20,80, 20)];
    _contentBtn.backgroundColor = [UIColor whiteColor];
    _contentBtn.layer.cornerRadius = 4.0;
    _contentBtn.titleLabel.font = [UIFont systemFontOfSize:14.0];
    [_contentBtn setTitleColor:[UIColor colorWithHexString:@"#61cafd"] forState:UIControlStateNormal];
    _contentBtn.layer.borderColor = [[UIColor colorWithHexString:@"#61cafd"] CGColor];
    _contentBtn.layer.borderWidth = 1.0f;
    [self addSubview:_contentBtn];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
